package com.dao.impl;

import com.dao.NewsDao;

public class NewsDaoImpl extends UniversalDaoImpl implements NewsDao {

	public void addViews(int id) {
		String sql="update j_news set views=views+1 where id="+id;
		excuteSQL(sql);
	}

	public void fix(int newsID, int fix) {
		String sql="update j_news set fix="+fix+" where id="+newsID;
		excuteSQL(sql);
	}
}